import 'package:json_annotation/json_annotation.dart';

part 'dept.g.dart';

@JsonSerializable()
class Dept {
  Dept();

  List? children;
  bool? hasParent;
  late num id;
  late num parentId;
  late num orderNum;
  late String deptName;
  late String createTime;
  
  factory Dept.fromJson(Map<String,dynamic> json) => _$DeptFromJson(json);
  Map<String, dynamic> toJson() => _$DeptToJson(this);
}
